package com.hsnn.medstgmini.model;

public enum MessageType {

	XT(1, "系统消息"), YH(2, "用户消息");

	private int key;
	private String value;

	private MessageType(int key, String value) {
		this.key = key;
		this.value = value;
	}

	public static String getName(int key) {
		for (MessageType status : MessageType.values()) {
			if (status.key == key) {
				return status.value;
			}
		}
		return "";
	}

	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
}